<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查询页面- 元易</title>
<link href="${rc.contextPath}/css/css.css" rel="stylesheet"
	type="text/css" />
<script type="text/javascript"
	src="${rc.contextPath}/js/jquery-1.4.4.min.js" charset="UTF-8"></script>
<script type="text/javascript">
    function rand(randCodeId){
	    document.getElementById(randCodeId).src = document.getElementById(randCodeId).src+'?'+(new Date()).getTime();
    }
   
    function isNull(s){
    if (s == null || s.length <= 0 || trim(s) == ""){
            return true;
    }
    return false;
    }

	function trim(strSrc)
	{
		return strSrc.replace(/(^\s*)|(\s*$)/g, "");
	}
    function query(){
        var cardNo=$("#cardNo").val();
        var cardPwd=$("#cardPwd").val();
        if(isNull(cardNo)&& isNull(cardPwd))
        {
        	$("#cardNo").focus();
            return false;
        }
    	$.ajax({
    		  type: "GET",
    		  url: "${rc.contextPath}/query.htm?method=query&cardNo="+cardNo+"&cardPwd="+cardPwd,
    		  cache: false,
    		  dataType: "txt",
    		  success: function(msg) {
    				  $("#paginationResult").html(msg);
    		   },
    		  error: function(err) {
    		  alert("系统忙,稍候再试...");
    		  }
    		  });
    			        
    }
</script>
</head>

<body>
<div id="wrapper">
<div class="head">
<div class="headL"><img src="${rc.contextPath}/images/logo.jpg" /></div>
</div>
<div class="title">充值卡支付--订单交易查询</div>
<div class="userInfo">
<ul>
	<li class="userInfoL">卡号：</li>
	<li class="userInfoR"><input type="text" id="cardNo" name="cardNo"
		class="width150px" maxlength="25" /></li>
</ul>
<ul>
	<li class="userInfoL">卡密：</li>
	<li class="userInfoR"><input type="text" id="cardPwd"
		name="cardPwd" class="width150px" maxlength="25" /></li>
</ul>
<!--    <ul>--> <!--      <li class="userInfoL">商家订单号：</li>--> <!--      <li class="userInfoR">-->
<!--        <input type="text" id="orderid" name="orderid" maxlength="100" class="width150px"/>-->
<!--      </li>--> <!--    </ul>--> <!--    <ul>--> <!--      <li class="userInfoL">交易时间：</li>-->
<!--      <li class="userInfoR">--> <!--          <input type="text" id="format_startDate"  class="Wdate"  onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',vel:'startDate',minDate:'${startDate?default('')}',maxDate: '#F{$dp.$D(\'format_endDate\')}' })" value="${startDate?default('')}" />-->
<!--            <input type="hidden" id="startDate" name="startDate" value="${startDate?default('')}" />-->
<!--           到--> <!--           <input type="text" id="format_endDate"  class="Wdate"  onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',vel:'endDate',maxDate:'${endDate?default('')}',minDate: '#F{$dp.$D(\'format_startDate\')}'})" value="${endDate?default('')}" />-->
<!--        <input type="hidden" id="endDate" name="endDate" value="${endDate?default('')}" />  <font size="-1"; color="#9d9d9d">必填</font>-->
<!--      </li>--> <!--    </ul>-->
<div class="clear"></div>
<div class="form_line"></div>
<ul>
	<li class="userInfoL"></li>
	<li class="userInfoR"><input name="" type="button"
		onclick="query();" value="查询" /></li>
</ul>
<div class="clear"></div>
</div>
<div id="paginationResult"></div>
<div class="mark">注意：仅提供30天内的在线交易记录查询，如果有问题请联系在线客服。</div>

</div>
</body>
</html>
